/*
 *  notification.h - Notification server functions
 *  Copyright (c) 2005 Derek Ingrouville (dergro@users.sourceforge.net)
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Library General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 */

#ifndef _NOTIFICATION_H
#define _NOTIFICATION_H

typedef struct _MsnNotification MsnNotification;

#include "session.h"

struct _MsnNotification
{
    MsnConnection *conn;
    MsnSession *session;
    gboolean connected;
};

MsnNotification *msn_notification_new (MsnSession *session);
void msn_notification_free (MsnNotification *notif);

int msn_notification_connect (MsnNotification *notif, const char *server, int port);
void msn_notification_disconnect (MsnNotification *notif);

int msn_notification_start_login (MsnNotification *notif);
void msn_notification_sign_out (MsnNotification *notif);

MsnSwitchboard *msn_notification_request_switchboard (MsnNotification *notif);

int send_chg (MsnConnection *conn, const char *status, unsigned int clientcaps);
int send_adg (MsnConnection *conn, const char *group_name);
int send_rea (MsnConnection *conn, const char *passport, const char *name);
int send_png (MsnConnection *conn);

#endif /* _NOTIFICATION_H */

